import request from './request.js'
// 轮播图请求
function getHomeSwiperImgs() {
	return request({
		url: 'carousel/carousel/list',
		method: 'GET'
	})
}

// 本月活动
function getCurrentMonthActive(data) {
	return request({
		url: 'events/events/list',
		method: 'GET',
		data
	})
}

// 活动详情
function getCurrentActiveInfo(id) {
	return request({
		url: `events/events/${id}`,
		method: 'GET'
	})
}

// 门店信息
function getStoreList() {
	return request({
		url: 'system/dept/parent/list',
		method: 'GET'
	})
}

export {
	getHomeSwiperImgs,
	getCurrentMonthActive,
	getCurrentActiveInfo,
	getStoreList
}